﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Form.aspx.cs" Inherits="eTruck.Views.Form.Form" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="<%=Page.ResolveClientUrl("~/Styles/Site.css")%>" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="<%=Page.ResolveClientUrl("~/Styles/ss.gridview.css")%>"/>
    <link rel="stylesheet" type="text/css" href="<%=Page.ResolveClientUrl("~/Styles/themes/default/easyui.css")%>"/>
	<link rel="stylesheet" type="text/css" href="<%=Page.ResolveClientUrl("~/Styles/themes/icon.css")%>"/>
	<script type="text/javascript" src="<%=Page.ResolveClientUrl("~/Scripts/jquery-1.4.1.min.js")%>"></script>
	<script type="text/javascript" src="<%=Page.ResolveClientUrl("~/Scripts/jquery.easyui.min.js")%>"></script>
    <script type="text/javascript" src="<%=Page.ResolveClientUrl("~/Scripts/CheckBox.js")%>"></script>
    <script type="text/javascript" src="<%=Page.ResolveClientUrl("~/Scripts/ss.changebackground.js")%>"></script>
    <script type="text/javascript" src="<%=Page.ResolveClientUrl("~/Scripts/jquery.autocomplete.js")%>"></script>
    <link rel="stylesheet" type="text/css" href="<%=Page.ResolveClientUrl("~/Styles/jquery.autocomplete.css")%>" />
    <style type="text/css">
table.FormInfo 
{
	
	font-family: verdana,arial,sans-serif;
	font-size:11px;
	color:#333333;
	border-width: 1px;
	border-color: #666666;
	border-collapse: collapse;	
	width:100%;
}

table.FormInfo td {
	border-width: 1px;
	padding: 8px;
	border-style: solid;
	border-color: #666666;
	background-color: #ffffff;
}
</style>
<%-- <script type="text/javascript">
     $(function () {
         
         function formatItem(row, i, max, term) {
             return " <strong>" + row[1] + "</strong>";
         }
         function formatResult(row) {
             return row[1].replace(/(<.+?,>)/gi, '').replace(', ', '');
         }
         $("input[id*='TextBox_CarNo']").autocomplete('../Commons/FormHandler_Car.ashx', {
             width: 200,
             multiple: true,
             matchContains: true,
             formatItem: formatItem,
             formatResult: formatResult
         }).result(function (event, datagrs, formatted) {
             var obj_CarNo = $("input[id*='TextBox_CarNo']");
             var obj_CarID = $("input[id*='Label_CarID']");
             var obj_Capaity = $("input[id*='TextBox_Capaity']");
             var obj_Crop = $("input[id*='TextBox_Crop']");
             var obj_CroprationID = $("input[id*='Label_CroprationID']");
             var obj_Crop_People = $("input[id*='TextBox_Crop_People']");
             
             
             obj_CarNo.val(datagrs[1]);
             obj_CarID.val(datagrs[0]);
             obj_Capaity.val(datagrs[2] + datagrs[3]);
             obj_CroprationID.val(datagrs[4])
             obj_Crop.val(datagrs[5])
             obj_Crop_People.val(datagrs[6])
         });



     });
    </script>--%>
</head>
<body style=" margin-bottom:0; margin-left:5px; margin-right:0; margin-top:5px; padding:0;">

    <form id="form2" runat="server">
    <div style="height:99%;border:1px solid #ccc; margin:0; padding:0; ">
		<div id="panelForm" class="easyui-panel" title="车辆信息" style="width:800px;height:600px;padding:5px; margin:0"
				data-options="iconCls:'icon-save',collapsible:true" maximized="true">
    
		<table  class="FormInfo">
       <tr>
       <%-- --%>
        <td><div align="Left">车牌号：<br /><asp:TextBox ID="TextBox_CarNo" runat="server"  AutoPostBack="True" ontextchanged="TextBox_CarNo_TextChanged"
                class="easyui-validatebox" data-options="required:true"   missingMessage="必须填写车牌号"
               ></asp:TextBox> <asp:Label ID="Label_CarID" runat="server" Text="" Visible="false"></asp:Label></div></td>
        <td><div align="Left">所属公司：<br /><asp:TextBox ID="TextBox_Crop" runat="server"  Enabled="false" ></asp:TextBox>
            <asp:Label ID="Label_CroprationID" runat="server" Text="" Visible="false"></asp:Label>
            </div></td>
        <td><div align="Left">公司负责人：<br /><asp:TextBox ID="TextBox_Crop_People" runat="server"  Enabled="false"></asp:TextBox></div></td>
                    
        </tr>
         <tr>
        <td><div align="Left">驾驶证号：<br /><asp:TextBox ID="TextBox_DriverNo" runat="server"  missingMessage="必须填写驾驶证号"
                class="easyui-validatebox" data-options="required:true" AutoPostBack="True" 
                ontextchanged="TextBox_DriverNo_TextChanged"></asp:TextBox>
            <asp:Label ID="Label_DriverID" runat="server" Text="" Visible="false"></asp:Label>        
        </div></td>
        <td><div align="Left">司机姓名：<br /><asp:TextBox ID="TextBox_DriverName" runat="server"  Enabled="false"></asp:TextBox></div></td>
        <td><div align="Left">车辆载重：<br /><asp:TextBox ID="TextBox_Capaity" runat="server"  Enabled="false"></asp:TextBox></div></td>
         
                    
        </tr>
         <tr>
         
        <td><div align="Left">进厂目的：<br />
            <asp:DropDownList ID="DropDownList_Purpose" runat="server"   style="width:150px;">
            </asp:DropDownList>
            
            </div></td>
        <td><div align="Left">已检查车辆情况：<br /><asp:CheckBox ID="CheckBox_CheckCar" runat="server" /></div></td>
        
            <td><div align="Left">司机已阅读注意事项：<br /><asp:CheckBox ID="CheckBox_Notice" runat="server" /></div></td>         
        </tr>
        
         <tr>
         <td><div align="Left">通行卡号：<br /><asp:TextBox ID="TextBox_Card" runat="server" ></asp:TextBox></div></td>
      
             
             <td><div align="Left">进厂放行保安：<br /><asp:TextBox ID="TextBox_SC_In" runat="server"  Enabled="false" ></asp:TextBox></div></td>
        <td><div align="Left">到达仓库确认仓管员：<br /><asp:TextBox ID="TextBox_WH_In" runat="server"  Enabled="false" ></asp:TextBox></div></td>
     
                    
        </tr>
        <tr>
         <td><div align="Left">联系人姓名：<br />
            <asp:TextBox ID="TextBox_Contact" runat="server" class="easyui-validatebox" data-options="required:true" missingMessage="必须填写联系人"></asp:TextBox></div></td>
              
         <td><div align="Left">进厂时间：<br /><asp:TextBox ID="TextBox_In_Time" runat="server" Enabled="false"></asp:TextBox></div></td> 
        <td><div align="Left">到达仓库时间：<br /><asp:TextBox ID="TextBox_WH_Time" runat="server"  Enabled="false"></asp:TextBox></div></td> 
        </tr>
          <tr>
          <td><div align="Left">订单号：<br /><asp:TextBox ID="TextBox_OrderNumber" runat="server"  ></asp:TextBox></div></td>
      
         <td><div align="Left">预约人：<br />
            <asp:TextBox ID="TextBox_Reservation" runat="server"  Enabled="false" ></asp:TextBox></div></td>
        <td><div align="Left">预约进厂时间：<br /><asp:TextBox ID="TextBox_Reservation_In_Time" runat="server"  class="easyui-datetimebox"  style="width:150px"></asp:TextBox></div></td>
                    
        </tr>
          <tr>
          
             
        <td colspan="3"><div align="Left" >当前状态：<br />  <asp:Label ID="Label_Status" 
                runat="server" Text="状态信息" Font-Bold="True" Font-Size="X-Large" 
                ForeColor="#339933"></asp:Label>
            </div></td>
       
        
                    
        </tr>
           <tr>
            
     
        <td colspan="3" style="text-align:center">
            <asp:Button ID="Button_Save" runat="server" Text="保存"  Font-Bold="True" 
                Font-Size="x-Large" onclick="Button2_Click" />
             &nbsp;<asp:Button ID="Button_Cancel" runat="server" Text="取消"  Font-Bold="True" 
                Font-Size="x-Large" onclick="Button1_Click" />
                
            </td>
        
                    
        </tr>
        </table>
			
		</div>  
        </div>
           
            <!--Search end-->
    <asp:HiddenField  ID="HiddenField1" runat="server" Value="" />
    <asp:HiddenField ID="HiddenField2" runat="server" />
    <asp:HiddenField ID="HiddenField3" runat="server" />
 
<script type="text/javascript">

    window.onresize = function () {
        $("#panelForm").panel("restore");
        $("#panelForm").panel("maximize");
    }

    function alertmessage(Title, Message,AlertType) {
        $.messager.alert(Title, Message, AlertType);
        document.getElementById("HiddenField1").value = "";
        document.getElementById("HiddenField2").value = "";
        document.getElementById("HiddenField3").value = "";
       
    }

    if (document.getElementById("HiddenField1").value != "") {        
        alertmessage(document.getElementById("HiddenField1").value, document.getElementById("HiddenField2").value, document.getElementById("HiddenField3").value);
    }
</script>
    </form>
</body>

</html>
